package common
{
	import flash.display.BitmapData;
	import flash.geom.Matrix;
	
	public class BitmapHelper
	{
		public static function mergeBitmapData(bg : BitmapData, fg : BitmapData) : BitmapData
		{
			var result:BitmapData = bg;
			result.draw(fg);
			return result;
		}
		
		public static function getTranslateMatrix(dx:Number, dy:Number) : Matrix
		{
			var translateMatrix : Matrix = new Matrix();
			translateMatrix.tx = dx;
			translateMatrix.ty = dy;
			return translateMatrix;
		}
	}
}